<template>
    <div class="showConceptList">
      <ul class="conceptImg">
        <img :src="info.img_src" :width="imgWidth">
      </ul>
      <div class="content" :style="'width:'+imgWidth+'px;height:'+imgWidth+'px;margin-top:-'+imgWidth+'px'">
        <ul>
          <li class="keyword">{{info.keyword}}</li>
          <li class="line">-------</li>
          <li class="title">{{info.title}}</li>
          <li class="desc">{{info.desc}}</li>
        </ul>
      </div>
    </div>
</template>

<script>
    export default {
        name: "showConceptList",
      methods:{
        getImgWidth(){
          this.imgWidth=document.body.clientWidth;
        }
      },
      data(){
          return{
            imgWidth:0,
          }
      },
        props:{
          info:{},
        },
      created(){
          this.getImgWidth()
      }
    }
</script>

<style scoped>
  .showConceptList{
    position: relative;
  }
  .conceptImg{
    width:100%;
    height:auto;
    font-size: 0;
  }
  .productImg img{
    width:100%;
    display: block;
  }
  .content{
    position:absolute;
    color:#FFF;
    display: flex;
    align-items: center;
  }
  .content ul{
    width:100%;
    letter-spacing: 2px;
  }
  .content .keyword{
    font-size:30px;
  }
  .content .line{
    letter-spacing: -1px;
    font-size:20px;
    padding-top: 30px;
    padding-bottom:20px;
  }
  .content .title,.desc{
    font-size: 13px;
    color:#999999;
    padding-bottom: 10px;
  }
</style>
